<?php
$properties = array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
);
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', $properties);

$htmlOptions = array('class'=>'span5');
echo $form->textFieldRow($model, 'id', $htmlOptions);

$htmlOptions = array('class'=>'span5');
echo $form->textFieldRow($model, 'measurementId', $htmlOptions);

$htmlOptions = array('class'=>'span5');
echo $form->textFieldRow($model, 'channelSequence', $htmlOptions);

$htmlOptions = array('class'=>'span5');
echo $form->textFieldRow($model, 'value', $htmlOptions);

$htmlOptions = array(
	'hint'=>'Use yyyy-mm-dd format',
	'prepend'=>'<i class="icon-calendar"></i>',
	'options'=>array(
		'dateFormat'=>'yy-mm-dd',
		'changeYear'=>TRUE,
		'changeMonth'=>TRUE,
	),
);
echo $form->datepickerRow($model, 'createdAt', $htmlOptions);

$htmlOptions = array(
	'hint'=>'Use yyyy-mm-dd format',
	'prepend'=>'<i class="icon-calendar"></i>',
	'options'=>array(
		'dateFormat'=>'yy-mm-dd',
		'changeYear'=>TRUE,
		'changeMonth'=>TRUE,
	),
);
echo $form->datepickerRow($model, 'updatedAt', $htmlOptions);
?>

<div class="form-actions">
	<?php
	$properties = array(
		'buttonType'=>'submit',
		'type'=>'primary',
		'label'=>'Search',
	);
	$this->widget('bootstrap.widgets.TbButton', $properties);
	?>
</div>

<?php $this->endWidget(); ?>
